using System;

namespace Charisma.MongoDb.Linq.Expressions
{
  internal sealed class ScalarExpression : MongoExpression
  {
    public QueryExpression Subquery { get; private set; }

    public ScalarExpression(Type type, QueryExpression subquery)
      : base(MongoExpressionType.Scalar, type)
    {
      Subquery = subquery;
    }
  }
}